package com.icangya.DAO;

import com.icangya.domain.AdvertClick;

public interface IAdvertClickDAO extends IBaseDAO<AdvertClick>{

    /**
     *查询广告被点击所产生的广告费
     * return //这条广告被点击所花费的所有金额
     * @param advertId  //广告的编号
     */

    Double getAdvertClickMoney(Long advertId);


    /**
     *判断用户是否已经点击过该广告
     * @param openId
     * @param advertId
     * @return
     */
    boolean getAdvertClickByOpenId(String openId,Long advertId);

    /**
     * 获取单条广告被点击的次数
     * @param advertId
     * @return
     */
    Long getCountAdvertClick(Long advertId);




}
